package main

import "fmt"

func Add(i int, j int) int {
	return i + j
}

func AddMultiSub(i int, j int) (int, int, int) {
	return i + j, i * j, i - j
}

func Sum(nums []int) int {
	var sum int = 0
	for _, val := range nums {
		sum += val
	}
	return sum
}

func main() {
	var a, b int = 5, 8
	var array = []int{1, 2, 3}
	var c int = Add(a, b)
	var d, e, f int = AddMultiSub(a, b)
	var g int = Sum(array)

	fmt.Printf("Add:%v \nAddMultiSub:%v,%v,%v \nSum:%v \n", c, d, e, f, g)

}
